package cn.com.iscs.sqlProject;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.support.SpringBootServletInitializer;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

/**
 * 默认启动类
 */
@SpringBootApplication
@Configuration
@ComponentScan   //默认扫描是当前包下的路径
@EnableAutoConfiguration
public class Application extends SpringBootServletInitializer {

	private static Logger  logger = LoggerFactory.getLogger(SpringBootServletInitializer.class);

	@Override
	protected SpringApplicationBuilder configure(
			SpringApplicationBuilder application) {
		return application.sources(Application.class);
	}

	public static void main(String[] args) throws ClassNotFoundException {
		 SpringApplication.run(Application.class, args);
	}
}